package com.bci.pwtz.service.cad;

public class Cad_Test {
	public static Cad_Size getTextSize(String showName, double db) {
		if (showName == null || showName.length() == 0) {
			return null;
		}

		int i = 0;
		int j = 0;
		for (int k = 0; k < showName.length(); k++) {
			if (showName.charAt(k) > '') {
				j++;
			} else {
				i++;
			}
		}
		Cad_Size localEx_dsize = new Cad_Size();
		localEx_dsize.cx = (db * (0.96D * i + 0.725D * j));
		localEx_dsize.cy = db;
		return localEx_dsize;
	}
}
